package hust.rpc.service;

import hust.rpc.annotation.Service;
import hust.rpc.constants.Constants;

/**
 * 服务端提供的服务
 */
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public String compute(int id, String name) {
        return id + "~~~" + name;
    }

    @Override
    public String hello(String msg) {
        return msg + " - " + Constants.PROVIDER_PORT;
    }
}
